﻿using System;
using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;

namespace TextAutoEdit
{
    internal class CS2Lua
    {
        public static Type[] GetTypes(Assembly assembly)
        {
            List<Type> types = new List<Type>();
            foreach (var type in assembly.GetTypes())
            {
                if(type.GetCustomAttribute<CS2LuaAttribute>() != null)
                    types.Add(type);
            }
            return types.ToArray();
        }

        public static string GetLuaScipt(Type t)
        {
            return t.FullName;
        }
    }
}
